﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TV4Home.Server.Vail.AddIn
{
    public partial class BugReportSubmitSuccessForm : Form
    {
        public BugReportSubmitSuccessForm()
        {
            InitializeComponent();
        }

        public BugReportSubmitSuccessForm(string id)
            : this()
        {
            if (String.IsNullOrWhiteSpace(id))
                return;

            this.lblIssueId.Text = id;

            this.lnkIssueLink.LinkUrl = new Uri(String.Format("http://tv4home.codeplex.com/workitem/list/basic?keywords={0}&issuesToDisplay=All", id));
            this.lnkIssueLink.Text = this.lnkIssueLink.LinkUrl.OriginalString;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
